package com.netjava.service.impl;

import java.util.List;

import com.netjava.dao.IAuctioningDAO;
import com.netjava.pojo.Auctioning;
import com.netjava.service.IAuctioningService;
/**
 * 正在拍卖的商品的业务实施类。
 * @author nana
 *
 */
public class AuctioningService implements IAuctioningService{
	private IAuctioningDAO auctioningDao;
	
	public void add(Auctioning auctioning){
		auctioningDao.save(auctioning);
	}
	public void delete(Auctioning auctioning){
		auctioningDao.delete(auctioning);
	}
	public Auctioning getAuctioningById(java.lang.Integer id){
		return auctioningDao.findById(id);
	}
	public IAuctioningDAO getAuctioningDao() {
		return auctioningDao;
	}
	public void setAuctioningDao(IAuctioningDAO auctioningDao) {
		this.auctioningDao = auctioningDao;
	}
	public List<Auctioning> getAllAuc() {
		List<Auctioning> aucList=auctioningDao.findAll();
		return aucList;
	}
	public void attachDirty(Auctioning instance){
		auctioningDao.attachDirty(instance);
	}
	
}
